Skip to content

[test](regression) Add ORC reader V2 Hive coverage#65480

Open
xylaaaaa wants to merge 1 commit into
apache:masterfrom
xylaaaaa:codex/orc-v2-hive-regression
Open

[test](regression) Add ORC reader V2 Hive coverage#65480
xylaaaaa wants to merge 1 commit into
apache:masterfrom
xylaaaaa:codex/orc-v2-hive-regression

Conversation

@xylaaaaa

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:
This PR adds regression coverage for the refactored ORC reader V2 path on Hive external tables. It covers ORC SARG initialization for min/max pruning, null-safe predicates, decimal/date/timestamp predicates, lazy materialization profile metrics, delete predicate behavior on Hive ACID ORC tables, and virtual row id coverage through the existing TopN lazy materialization suite.

Release note

None

Check List (For Author)

  • Test:
    • Regression test: ./run-regression-test.sh --run -d external_table_p0/hive -s test_hive_orc_predicate,test_orc_lazy_mat_profile,test_transactional_hive,test_hive_topn_lazy_mat
    • Regression test: ./run-regression-test.sh --run -d external_table_p0/hive -s test_hive_orc_predicate,test_orc_lazy_mat_profile
    • Regression test: ./run-regression-test.sh --run -d external_table_p0/hive -s test_orc_lazy_mat_profile
  • Behavior changed: No
  • Does this need documentation: No

Copilot AI review requested due to automatic review settings July 11, 2026 04:51
@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Gabriel39

Copy link
Copy Markdown
Contributor

/review

@xylaaaaa

Copy link
Copy Markdown
Contributor Author

run buildall

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review result: request changes due to one test-coverage gap.

Critical checkpoint conclusions:

  • Goal/test proof: this PR is intended to add ORC Reader V2 Hive coverage, but the transactional Hive ACID additions do not prove ScannerV2 coverage because those ranges still fall back to the old scanner.
  • Scope/focus: the changes are limited to regression tests and are otherwise focused.
  • Concurrency/lifecycle/data writes/persistence: no production code paths are changed by this PR.
  • Configuration/session propagation: the accepted issue is specifically that setting enable_file_scanner_v2=true is insufficient for transactional_hive ranges because scanner selection rejects that table format.
  • Parallel paths: transactional Hive has a separate old-scanner reader path, which is the reported coverage gap.
  • Test coverage/results: static review only in this runner; the base commit is absent locally, .worktree_initialized and thirdparty/installed are missing, and external Hive execution is not available here.
  • User focus: no additional user-provided review focus was present.

Subagent conclusions: optimizer-rewrite reported no optimizer/rewrite candidates. tests-session-config proposed TSC-001, accepted as the inline comment below. Convergence round 1 ended with both live subagents replying NO_NEW_VALUABLE_FINDINGS for the same final ledger/comment set.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correcting the inline anchor for the same accepted finding from the prior review summary.

Comment thread regression-test/suites/external_table_p0/hive/test_transactional_hive.groovy Outdated
@xylaaaaa
xylaaaaa force-pushed the codex/orc-v2-hive-regression branch from eda21cf to 5bbdf3f Compare July 11, 2026 10:53
@Gabriel39

Copy link
Copy Markdown
Contributor

run buildall

@Gabriel39

Copy link
Copy Markdown
Contributor

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review found one blocking issue in the new regression coverage: the Hive ORC predicate assertions force ScannerV2 but rely on a SARG-success session guard that only the legacy ORC reader enforces.

Critical checkpoint conclusions:

  • Goal/test proof: the PR is focused on ORC reader V2 Hive regression coverage, but the accepted inline issue means part of that coverage can pass without proving the intended V2 SARG/min-max path.
  • Scope: the PR is test-only and otherwise narrow.
  • Concurrency, lifecycle, persistence, transactionality, data writes, and FE-BE protocol compatibility: no runtime code is changed directly.
  • Configuration/session propagation: the issue is specifically a session-variable coverage gap between old and V2 ORC reader paths.
  • Parallel paths: the existing transactional Hive ScannerV2 thread is already known; this review comment covers a distinct non-transactional Hive ORC V2 case.
  • Test results and style: GitHub PR patch whitespace validation passed. I did not run regression tests because this checkout lacks thirdparty/installed and the external Hive environment.
  • User focus: no additional user-provided review focus was supplied.

Subagent conclusions: OPT-1 and TSC-1 were merged into the single inline comment. A possible profile-token pruning concern was dismissed because FE profile summaries record the original SQL text. Convergence round 1 ended with both optimizer-rewrite and tests-session-config replying NO_NEW_VALUABLE_FINDINGS for the exact final ledger/comment set.

Comment thread regression-test/suites/external_table_p0/hive/test_hive_orc_predicate.groovy Outdated
@xylaaaaa
xylaaaaa force-pushed the codex/orc-v2-hive-regression branch from 5bbdf3f to 4f97c46 Compare July 12, 2026 04:51
@xylaaaaa

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 14.29% (2/14) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 56.90% (23542/41373)
Line Coverage 40.56% (230186/567454)
Region Coverage 36.47% (181882/498744)
Branch Coverage 37.54% (81191/216287)

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 14.29% (2/14) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 74.72% (30163/40368)
Line Coverage 58.70% (331022/563892)
Region Coverage 55.53% (277998/500640)
Branch Coverage 56.77% (122834/216365)

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-H: Total hot run time: 29432 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 4f97c467a1245ab291ca44b5c7a060f1b0bc8122, data reload: false

------ Round 1 ----------------------------------
============================================
q1	17838	4184	3975	3975
q2	2008	324	196	196
q3	10279	1432	833	833
q4	4681	481	337	337
q5	7531	859	572	572
q6	208	180	138	138
q7	801	836	618	618
q8	10038	1618	1562	1562
q9	6100	4397	4382	4382
q10	6820	1777	1515	1515
q11	507	351	308	308
q12	709	555	428	428
q13	18114	3353	2719	2719
q14	273	266	244	244
q15	q16	786	770	711	711
q17	947	957	1014	957
q18	6883	5646	5675	5646
q19	1340	1262	1032	1032
q20	782	622	566	566
q21	5684	2581	2403	2403
q22	422	351	290	290
Total cold run time: 102751 ms
Total hot run time: 29432 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4520	4418	4484	4418
q2	310	338	218	218
q3	4638	4966	4454	4454
q4	2140	2213	1359	1359
q5	4558	4351	4447	4351
q6	250	183	132	132
q7	2202	1928	1630	1630
q8	2687	2270	2257	2257
q9	7945	7885	8005	7885
q10	4727	4739	4245	4245
q11	609	425	559	425
q12	776	805	560	560
q13	3231	3652	2882	2882
q14	291	312	273	273
q15	q16	731	751	651	651
q17	1379	1329	1352	1329
q18	8348	7394	6980	6980
q19	1082	1053	1080	1053
q20	2223	2208	1932	1932
q21	5322	4724	4516	4516
q22	522	472	411	411
Total cold run time: 58491 ms
Total hot run time: 51961 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 180139 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 4f97c467a1245ab291ca44b5c7a060f1b0bc8122, data reload: false

query5	4308	635	488	488
query6	471	216	193	193
query7	4837	539	354	354
query8	335	187	187	187
query9	8779	4094	4068	4068
query10	485	354	293	293
query11	5920	2360	2137	2137
query12	161	102	108	102
query13	1285	609	431	431
query14	6247	5255	5006	5006
query14_1	4270	4350	4270	4270
query15	215	202	182	182
query16	990	436	423	423
query17	1109	713	562	562
query18	2423	454	333	333
query19	206	182	146	146
query20	110	103	105	103
query21	231	159	137	137
query22	13555	13687	13417	13417
query23	17284	16660	16192	16192
query23_1	16251	16442	16314	16314
query24	7428	1776	1307	1307
query24_1	1316	1320	1274	1274
query25	571	466	395	395
query26	1335	365	209	209
query27	2612	595	386	386
query28	4488	2012	2046	2012
query29	1096	635	489	489
query30	336	265	233	233
query31	1120	1111	993	993
query32	117	63	64	63
query33	536	344	263	263
query34	1370	1080	644	644
query35	776	811	669	669
query36	1409	1442	1218	1218
query37	154	106	96	96
query38	1875	1694	1630	1630
query39	928	913	883	883
query39_1	903	877	890	877
query40	244	159	143	143
query41	70	70	67	67
query42	93	93	91	91
query43	320	332	283	283
query44	1426	788	779	779
query45	210	187	178	178
query46	1087	1214	775	775
query47	2394	2316	2230	2230
query48	407	421	268	268
query49	585	422	316	316
query50	1031	451	344	344
query51	10955	10844	10719	10719
query52	86	82	73	73
query53	276	274	204	204
query54	273	225	236	225
query55	80	68	70	68
query56	292	292	280	280
query57	1428	1414	1307	1307
query58	279	261	260	260
query59	1561	1609	1455	1455
query60	300	274	244	244
query61	148	145	144	144
query62	680	651	584	584
query63	238	205	205	205
query64	2796	1042	878	878
query65	4814	4794	4757	4757
query66	1878	517	379	379
query67	29550	29315	29294	29294
query68	3136	1658	975	975
query69	407	299	278	278
query70	1091	961	987	961
query71	356	335	316	316
query72	3000	2662	2376	2376
query73	830	769	442	442
query74	5087	4939	4738	4738
query75	2596	2573	2214	2214
query76	2313	1166	747	747
query77	349	382	283	283
query78	12337	12360	11655	11655
query79	1316	1163	768	768
query80	647	553	453	453
query81	462	315	289	289
query82	580	161	124	124
query83	399	319	285	285
query84	279	159	129	129
query85	899	595	494	494
query86	359	290	296	290
query87	1829	1822	1750	1750
query88	3697	2832	2809	2809
query89	437	408	353	353
query90	1958	204	194	194
query91	199	187	158	158
query92	62	62	57	57
query93	1550	1519	995	995
query94	528	376	311	311
query95	781	581	454	454
query96	994	802	352	352
query97	2708	2677	2537	2537
query98	211	204	206	204
query99	1133	1157	1014	1014
Total cold run time: 264193 ms
Total hot run time: 180139 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 24.88 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 4f97c467a1245ab291ca44b5c7a060f1b0bc8122, data reload: false

query1	0.01	0.01	0.01
query2	0.10	0.05	0.04
query3	0.29	0.14	0.13
query4	1.62	0.13	0.14
query5	0.24	0.22	0.22
query6	1.25	1.03	1.04
query7	0.04	0.00	0.01
query8	0.06	0.04	0.04
query9	0.37	0.31	0.31
query10	0.56	0.53	0.56
query11	0.19	0.14	0.14
query12	0.18	0.15	0.14
query13	0.48	0.46	0.48
query14	1.00	1.02	1.01
query15	0.62	0.59	0.59
query16	0.33	0.33	0.32
query17	1.15	1.17	1.12
query18	0.24	0.21	0.21
query19	2.05	1.96	1.94
query20	0.02	0.01	0.02
query21	15.43	0.20	0.12
query22	4.96	0.06	0.05
query23	16.17	0.32	0.12
query24	2.96	0.43	0.32
query25	0.11	0.05	0.04
query26	0.75	0.21	0.15
query27	0.04	0.04	0.04
query28	3.51	0.87	0.55
query29	12.49	4.06	3.20
query30	0.28	0.15	0.15
query31	2.77	0.60	0.31
query32	3.21	0.60	0.48
query33	3.17	3.15	3.19
query34	15.67	4.23	3.50
query35	3.59	3.54	3.55
query36	0.54	0.44	0.41
query37	0.08	0.07	0.06
query38	0.05	0.04	0.04
query39	0.04	0.03	0.03
query40	0.17	0.16	0.14
query41	0.10	0.03	0.03
query42	0.04	0.03	0.03
query43	0.04	0.04	0.04
Total cold run time: 96.97 s
Total hot run time: 24.88 s

Issue Number: None

Related PR: None

Problem Summary: The refactored ORC reader lacked focused Hive external-table regression coverage for SARG conversion across null-safe, integer min/max, decimal, date, and timestamp predicates. It also lacked explicit Reader V2 coverage for lazy materialization result integrity, Hive ACID delete predicates, and virtual row-id planning. Add focused assertions and force FileScannerV2 in the relevant suites while preserving existing generated result files.

None

- Test: Regression test
    - Ran ./run-regression-test.sh --run -d external_table_p0/hive -s test_hive_orc_predicate,test_orc_lazy_mat_profile,test_transactional_hive,test_hive_topn_lazy_mat
    - Verified all four suites load successfully; Hive external execution was not enabled in the local configuration
- Behavior changed: No
- Does this need documentation: No
@xylaaaaa
xylaaaaa force-pushed the codex/orc-v2-hive-regression branch from 4f97c46 to d954050 Compare July 14, 2026 02:16
@xylaaaaa

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 14.29% (2/14) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 57.07% (23676/41483)
Line Coverage 40.79% (232057/568924)
Region Coverage 36.65% (183312/500111)
Branch Coverage 37.78% (82010/217050)

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-H: Total hot run time: 29397 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit d9540504ee43c325b01868f4af79d723cc971932, data reload: false

------ Round 1 ----------------------------------
============================================
q1	18191	4189	4012	4012
q2	2079	318	195	195
q3	10238	1433	835	835
q4	4684	472	345	345
q5	7485	840	570	570
q6	177	170	143	143
q7	771	817	612	612
q8	9959	1566	1531	1531
q9	6044	4333	4337	4333
q10	6817	1723	1453	1453
q11	513	333	325	325
q12	738	548	424	424
q13	18103	3278	2731	2731
q14	260	262	237	237
q15	q16	785	782	700	700
q17	1015	1004	1040	1004
q18	7140	5889	5586	5586
q19	1177	1327	1095	1095
q20	756	662	547	547
q21	5651	2604	2416	2416
q22	436	362	303	303
Total cold run time: 103019 ms
Total hot run time: 29397 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4452	4302	4343	4302
q2	301	319	211	211
q3	4562	4922	4390	4390
q4	2056	2121	1367	1367
q5	4345	4228	4271	4228
q6	228	174	129	129
q7	1739	2208	1650	1650
q8	2441	2149	2097	2097
q9	7758	7750	7795	7750
q10	4733	4664	4178	4178
q11	579	419	385	385
q12	742	756	543	543
q13	3380	3585	3033	3033
q14	295	307	275	275
q15	q16	746	725	650	650
q17	1321	1316	1335	1316
q18	7912	7554	6808	6808
q19	1078	1056	1090	1056
q20	2226	2211	1927	1927
q21	5185	4486	4433	4433
q22	536	456	396	396
Total cold run time: 56615 ms
Total hot run time: 51124 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 177380 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit d9540504ee43c325b01868f4af79d723cc971932, data reload: false

query5	4328	624	483	483
query6	455	221	211	211
query7	4859	575	349	349
query8	332	188	165	165
query9	8831	4040	4043	4040
query10	460	367	326	326
query11	5904	2344	2117	2117
query12	160	105	104	104
query13	1274	590	417	417
query14	6239	5269	4902	4902
query14_1	4268	4273	4322	4273
query15	218	201	181	181
query16	1061	462	469	462
query17	1141	748	578	578
query18	2705	463	351	351
query19	209	192	155	155
query20	116	108	108	108
query21	241	159	133	133
query22	13641	13515	13362	13362
query23	17186	16471	16243	16243
query23_1	16190	16232	16283	16232
query24	7640	1769	1267	1267
query24_1	1322	1310	1322	1310
query25	584	471	389	389
query26	1344	375	211	211
query27	2558	581	368	368
query28	4508	2018	2005	2005
query29	1111	631	491	491
query30	334	270	231	231
query31	1117	1110	994	994
query32	113	65	62	62
query33	547	324	265	265
query34	1152	1105	638	638
query35	775	806	690	690
query36	1223	1177	1046	1046
query37	153	109	93	93
query38	1862	1714	1648	1648
query39	897	903	859	859
query39_1	830	834	860	834
query40	247	200	150	150
query41	72	77	59	59
query42	93	91	89	89
query43	319	322	285	285
query44	1401	773	783	773
query45	192	182	175	175
query46	1058	1205	769	769
query47	2108	2153	2030	2030
query48	393	422	306	306
query49	580	426	307	307
query50	1015	405	356	356
query51	10643	10540	10660	10540
query52	86	85	75	75
query53	269	268	198	198
query54	300	245	241	241
query55	73	70	66	66
query56	305	307	292	292
query57	1342	1313	1222	1222
query58	306	256	256	256
query59	1570	1622	1439	1439
query60	313	283	261	261
query61	153	154	153	153
query62	534	495	430	430
query63	240	207	203	203
query64	2777	1056	912	912
query65	4677	4660	4634	4634
query66	1760	509	382	382
query67	29330	28593	29097	28593
query68	3270	1639	961	961
query69	415	307	271	271
query70	1038	944	965	944
query71	356	327	366	327
query72	3045	2695	2425	2425
query73	845	777	455	455
query74	5019	4914	4702	4702
query75	2515	2491	2116	2116
query76	2343	1159	757	757
query77	352	396	279	279
query78	11904	11843	11436	11436
query79	1502	1160	741	741
query80	1302	528	452	452
query81	526	323	280	280
query82	644	154	124	124
query83	365	328	302	302
query84	284	174	133	133
query85	1008	602	509	509
query86	416	298	267	267
query87	1845	1826	1771	1771
query88	3716	2791	2793	2791
query89	434	376	321	321
query90	1897	199	193	193
query91	202	192	173	173
query92	66	63	55	55
query93	1786	1613	943	943
query94	743	365	308	308
query95	784	574	490	490
query96	1106	819	351	351
query97	2609	2657	2481	2481
query98	214	202	198	198
query99	1092	1122	992	992
Total cold run time: 263982 ms
Total hot run time: 177380 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 24.92 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit d9540504ee43c325b01868f4af79d723cc971932, data reload: false

query1	0.01	0.01	0.00
query2	0.10	0.05	0.05
query3	0.26	0.14	0.13
query4	1.61	0.14	0.14
query5	0.26	0.22	0.21
query6	1.20	1.10	1.07
query7	0.04	0.00	0.00
query8	0.06	0.04	0.04
query9	0.38	0.30	0.32
query10	0.55	0.54	0.54
query11	0.19	0.14	0.13
query12	0.19	0.15	0.15
query13	0.47	0.48	0.47
query14	1.02	1.00	1.02
query15	0.62	0.59	0.60
query16	0.31	0.32	0.36
query17	1.09	1.16	1.10
query18	0.22	0.21	0.22
query19	1.99	1.92	1.94
query20	0.02	0.01	0.01
query21	15.44	0.22	0.13
query22	4.82	0.05	0.06
query23	16.13	0.30	0.12
query24	2.96	0.45	0.34
query25	0.11	0.06	0.04
query26	0.75	0.20	0.15
query27	0.05	0.03	0.03
query28	3.49	0.91	0.53
query29	12.49	4.04	3.18
query30	0.28	0.15	0.15
query31	2.76	0.60	0.31
query32	3.22	0.59	0.49
query33	3.25	3.26	3.18
query34	15.56	4.23	3.53
query35	3.53	3.52	3.54
query36	0.56	0.43	0.42
query37	0.10	0.06	0.07
query38	0.05	0.04	0.03
query39	0.04	0.03	0.03
query40	0.19	0.16	0.16
query41	0.09	0.04	0.03
query42	0.04	0.03	0.03
query43	0.04	0.03	0.04
Total cold run time: 96.54 s
Total hot run time: 24.92 s

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 14.29% (2/14) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 74.87% (30296/40463)
Line Coverage 58.92% (333080/565327)
Region Coverage 55.64% (279332/501996)
Branch Coverage 56.89% (123535/217133)

@Gabriel39

Copy link
Copy Markdown
Contributor

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review complete. I found one blocking test-coverage issue: the ORC lazy-materialization profile suite enables ScannerV2 but does not prove the captured profile actually used ScannerV2, so the intended V2 coverage can pass on the legacy path.

Checkpoint conclusions: the BE V2 SARG guard is small and scoped, the session variable is forwarded through FE to BE, and no separate BE correctness, concurrency, lifecycle, persistence, or protocol-compatibility defect was found. The existing predicate-suite and transactional-Hive review threads were treated as duplicate context and not repeated. Test coverage is the remaining issue: one changed profile suite needs UseScannerV2: true evidence before its ORC counter assertions.

User focus: no additional user-provided review focus was supplied.

Validation: static review only, as this review runner prompt forbids builds or code modifications. The checkout is already at the PR head, so applying the patch forward was not applicable; the reverse patch check against .code-review.xXOf0I/pr.diff succeeded with no whitespace warnings.

@@ -134,9 +135,14 @@ suite("test_orc_lazy_mat_profile", "p0,external") {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still does not prove the profile you are checking came from ScannerV2. The suite now sets enable_file_scanner_v2, but all of the counters asserted below (FilteredRowsByLazyRead, EvaluatedRowGroupCount, SelectedRowGroupCount) are also registered by the legacy ORC reader, so the test could keep passing if this scan silently falls back to the old FileScanner path. Please assert the captured profile contains UseScannerV2: true before checking the ORC counters, like the helper added in test_hive_orc_predicate.groovy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants